package com.example.springalibabacloudprovider02.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.springalibabacloudprovider02.utils.Results;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Classname ProviderController
 * @Description TODO
 * @Date 2022/5/13 22:09
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@RestController
@RequestMapping("pro")
@Api(tags = "api服务提供者2")
public class ProviderController {

    @GetMapping("/api")
    @ApiOperation("服务提供者2")
    public JSONObject apiController(){
        return Results.success("我是服务提供者2 2222");
    }

    @GetMapping("/v2")
    public JSONObject v2Controller(){
        return Results.success("我是服务提供者v2_3");
    }
}
